package com.example.cor.filters;

import com.example.cor.filter.Filter;

import com.example.cor.chain.FilterChain;

import javax.servlet.ServletException;
import javax.servlet.ServletRequest;
import javax.servlet.ServletResponse;
import java.io.IOException;


public class AuthFilter implements Filter {

    @Override
    public void interceptor(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException {
        System.out.println("AuthFilter----pre");
        // bus
        chain.next(request,response);

        System.out.println("AuthFilter---post");
    }
}
